<?php
          session_start();
           if ( isset($_SESSION["loggedon"]) ) {
                   if ($_SESSION["loggedon"] == FALSE) {
                       header("Location: signin.php");
                   }
          } else {
              header("Location: http://localhost/webapp/login.php");
          }
?>    